home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snpd9611.zip / GETOPTS.H < prev    next >
C/C++ Source or Header  |  1996-11-24  |  3KB  |  74 lines

  1. .I 0 21
  2. /* +++Date last modified: 24-Nov-1996 */
  3.  
  4. /************************************************************************/
  5. /*                                                                      */
  6. /*  MFLFILES Header file                                                */
  7. /*                                                                      */
  8. /*  Function prototypes for file system access functions.               */
  9. /*                                                                      */
  10. /*  Original Copyright 1990-96 by Robert B. Stout as part of            */
  11. /*  the MicroFirm Function Library (MFL)                                */
  12. /*                                                                      */
  13. /*  The user is granted a free limited license to use this source file  */
  14. /*  to create royalty-free programs, subject to the terms of the        */
  15. /*  license restrictions specified in the LICENSE.MFL file.             */
  16. /*                                                                      */
  17. /************************************************************************/
  18.  
  19. #ifndef GETOPTS_H
  20. #define GETOPTS_H
  21.  
  22. #include <stdio.h>
  23. .D 1 10
  24. .I 11 19
  25. #include "extkword.h"
  26.  
  27. #if __cplusplus
  28.  extern "C" {
  29. #endif
  30.  
  31. /************************************************************************/
  32. /*                                                                      */
  33. /*  Process command line options and wildcard arguments                 */
  34. /*                                                                      */
  35. /************************************************************************/
  36.  
  37. typedef enum {
  38.       Error_Tag,
  39.       Boolean_Tag,
  40.       Int_Tag,
  41.       Short_Tag,
  42.       Long_Tag,
  43.       Byte_Tag,
  44. .D 12 4
  45. .I 17 2
  46.       Float_Tag,
  47.       DFloat_Tag,
  48. .D 18 1
  49. .I 22 7
  50.       int         letter;                 /* Option switch              */
  51.       Boolean_T   case_sense;             /* TRUE = case sensitive      */
  52.       TAG_TYPE    type;                   /* Type of option             */
  53.       void       *buf;                    /* Storage location           */
  54.       char       *min;                    /* Minimum value (string)     */
  55.       char       *max;                    /* Maximum value (string)     */
  56.       char       *Default;                /* Default value (string)     */
  57. .D 23 5
  58. .I 30 14
  59.  
  60. extern int        xargc;
  61. extern char      *xargv[];
  62. extern Boolean_T  getopts_range_err;
  63. extern Boolean_T  xargs_on;
  64.  
  65. int    getopts(int, char *[]);
  66. double getopts_eval(char *str);
  67.  
  68. #if __cplusplus
  69.  }
  70. #endif
  71.  
  72. #endif /* GETOPTS_H */
  73. .D 31 6
  74.